﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using WebInterface;

namespace WebAppHappyNewYear.Controllers
{
    public class MySimpleController : Controller
    {
        private readonly ISimpleScopedService _simpleScopedService;

        public MySimpleController(ISimpleScopedService simpleScopedService)
        {
            _simpleScopedService = simpleScopedService;
        }
        public IActionResult Index()
        {
            base.ViewData["scope"] = _simpleScopedService.GetString();
            base.ViewData["single"] = _simpleScopedService.GetInproServiceString();
            return View();
        }
    }
}